package day02;

public class LongDemo {
    public static void main(String[] args) {
        //long:长整型,8个字节
        long a =25;//25L为长整型直接量
        //long b =10000000000;//编译错误,100亿默认为int类型,但超过int范围了
        long c =10000000000L;
        //long d =3.14;//编译错误,长整型变量中只能装整数

        long e = 1000000000*2*10L;
        System.out.println(e);//200亿
        long f = 1000000000*3*10L;
        System.out.println(f);//不是300亿
        long g = 1000000000L*3*10;
        System.out.println(g);//300亿

        long aa=24L;
        //long b =10000000000;//超范围
        long cc=10000000000L;
        //long dd=3.14;//只能装整数
        long ee=1000000000*2*10L;
        System.out.println(ee);//200亿
        long ff=1000000000*3*10L;
        System.out.println(ff);//不是300亿
        long gg=1000000000L*3*10;
        System.out.println(gg);//300亿

    }
}
